package com.example.money.Service.Impl;

import com.example.money.Dao.DeleteDao;
import com.example.money.Entity.delete;
import com.example.money.Service.DeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeleteImpl implements DeleteService{
    /**
     * 实现通过id删除
     * @param id
     * @return
     */
    @Autowired
    private DeleteDao deleteDao;

    @Override
    public boolean delete(delete delete) {
        int i=deleteDao.delete(delete);
        return i>0;
    }
}
